Skip to content

Conversation

@vishruth-thimmaiah
Copy link
Contributor

closes #1794

This PR adds support for the __sync_lock_set_and_set builtin.

This PR adds support for the `__sync_lock_set_and_set` builtin.

Signed-off-by: vishruth-thimmaiah <[email protected]>
@lanza lanza force-pushed the main branch 2 times, most recently from 8acaf96 to 58135ea Compare October 20, 2025 17:19
@vishruth-thimmaiah
Copy link
Contributor Author

vishruth-thimmaiah commented Oct 29, 2025

Hey @bcardosolopes, I saw that __sync_swap_* ends up producing the same IR as __sync_lock_test_and_set_*. Would you prefer I include the implementation in this PR or handle it separately?

@bcardosolopes
Copy link
Member

Would you prefer I include the implementation in this PR or handle it separately?

No rush. Can you add that in a new PR?

@bcardosolopes bcardosolopes merged commit d69ce8a into llvm:main Nov 4, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CIR][CodeGen][Builtin] sync_lock_test_and_set

2 participants